package com.jiayang.hhotel.fragment;

import com.jiayang.hhotel.adapter.Dayadapter;
import com.jiayang.hhotel.base.BasePagerFragment;

import cn.droidlover.xdroidmvp.base.SimpleRecAdapter;
import cn.droidlover.xrecyclerview.RecyclerItemCallback;
import cn.droidlover.xrecyclerview.XRecyclerView;

/**
 * Created by Administrator on 2017/5/19 0019.
 */

public class DayFragment  extends BasePagerFragment {

    private Dayadapter adapter;

    @Override
    public SimpleRecAdapter getAdapter() {
        if (adapter == null) {
            adapter = new Dayadapter(context);
            adapter.setRecItemClick(new RecyclerItemCallback<String, Dayadapter.ViewHolder>() {
                @Override
                public void onItemClick(int position, String model, int tag, Dayadapter.ViewHolder holder) {
                    super.onItemClick(position, model, tag, holder);
                }
            });
        }
        return adapter;
    }

    @Override
    public void setLayoutManager(XRecyclerView recyclerView) {

    }

    @Override
    public String getType() {
        return null;
    }
}
